<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * FormativeLab
 *
 * An open source application development framework for PHP 5.1.6 or newer
 *
 * @package		FormativeLab
 * @author		FormativeLab Dev Team
 * @copyright	Copyright (c) 2011 - 2013, FormativeLab, Inc.
 * @license		http://www.formativesoft.com/license/
 * @link		http://www.formativesoft.com/
 * @since		Version 2.0
 * @filesource ./application/modules/admin/controllers/signout.php
 */

// ------------------------------------------------------------------------

/**
 * FormativeLab Signout Controller
 *
 * @package		FormativeLab
 * @subpackage	modules/admin/controllers
 * @category	controllers
 * @author		Formative Soft Ltd
 * @link		http://www.formativesoft.com/
 */

// ------------------------------------------------------------------------

class Signout extends FSL_Controller {

	static $helpesr	= array();
	static $models	= array('M01I001001', 'M01I002001', 'M01I003001', 'M01I004001', 'M01I005001', 'M01I006001'
					  , 'M01I007001', 'M01I008001', 'M01I009001', 'M01I010001', 'M01I011001', 'M01I012001');

	/**
	 * __construct() Method is an empty constructor. This method use for initialization of 
	 * the controller. This constructor use to load required helpers, model, libraries.
	 *
	 * @access	public
	 * @return  void 
	 **/
	public function __construct(){
        parent::__construct('defaults');
		$this->load->helper(self::$helpers);
		loadModel(self::$models);
    }
	
	/**
	 * index() action use to application's admin signout. This action method first check whether
	 * the accessing user is signin or not. For signin user this method invalidate the session
	 * then redirect to signin page. For others cases this method directly redirect signin page
	 * for authentication and authorization.
	 *
	 * @access	public
	 * @return  void 
	 **/
	public function index()
	{
		$data = array(
			'clazz'		=> $this->router->fetch_class(),
			'action' 	=> $this->router->fetch_method()
		);
		$this->render->response($data);
	}

}

/* End of file signout.php */
/* Location: ./application/modules/admin/controllers/signout.php */